package lapsnake.model.slice;

import lapsnake.model.LapAbstractSlice;
import lapsnake.model.LapExpression;
import lapsnake.model.PyAST;
import lapsnake.model.data.*;
import lapsnake.model.data.SingleChild;
import lapsnake.py.ast.ASTHelperFactory; import java.beans.PropertyVetoException;

import org.python.antlr.ast.Index;

public class LapIndex extends LapAbstractSlice
{
	public final SingleChild<LapExpression> value = new SingleChild<LapExpression>(this, LapExpression.class);
	
	public LapIndex(PyAST pyAST, ChildField<? super LapIndex> parent, Index node) throws PropertyVetoException {
		super(pyAST, parent, node);
		ASTHelperFactory.makeHelper(pyAST, value, node.getInternalValue());
		buildTextNodes(node);
	}
}